package com.ssoserver.config;

public class DatabaseHolder {
    private static ThreadLocal<String> dataSource = new ThreadLocal();

    public static String getDataSource() {
        return dataSource.get();
    }

    public static void setDataSource(String db) {
        dataSource.set(db);
    }

    public static void clearDataSource() {
        dataSource.remove();
    }
}
